import mods.modularmachinery.RecipePrimer;
import mods.modularmachinery.RecipeBuilder;
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
import crafttweaker.liquid.ILiquidStack;
import crafttweaker.oredict.IOreDict;
import crafttweaker.oredict.IOreDictEntry;
import crafttweaker.data.IData;

// Manasteel Block to Mana Crystal
RecipeBuilder.newBuilder("m_manasteelblock_crystal","modular_mana_dissociator",810).
addItemInput(<botania:storage>*1).
addManaInput(8100).
addManaPerTickInput(10).
addItemOutput(<additions:hsadd-manacrystal>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.08).
addItemOutput(<minecraft:iron_block>*1).setChance(0.85).
addItemOutput(<minecraft:iron_ingot>*9).setChance(0.1).
addItemOutput(<minecraft:iron_nugget>*81).setChance(0.05).
addManaOutput(16200).
addManaPerTickOutput(20).
build();

// Manasteel Ingot to Mana Crystal
RecipeBuilder.newBuilder("m_manasteelingot_crystal","modular_mana_dissociator",90).
addManaInput(900).
addManaPerTickInput(10).
addItemInput(<botania:manaresource>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.12).
addItemOutput(<minecraft:iron_ingot>*1).setChance(0.9).
addItemOutput(<minecraft:iron_nugget>*9).setChance(0.1).
addManaOutput(1800).
addManaPerTickOutput(20).
build();

// Manasteel Nugget to Mana Crystal
RecipeBuilder.newBuilder("m_manasteelnugget_crystal","modular_mana_dissociator",10).
addManaInput(100).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:17>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.0133).
addItemOutput(<minecraft:iron_nugget>*1).setChance(0.95).
addManaOutput(200).
addManaPerTickOutput(20).
build();

// Mana Pearl to Mana Crystal
RecipeBuilder.newBuilder("m_manapearl_crystal","modular_mana_dissociator",180).
addManaInput(1800).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:1>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.24).
addItemOutput(<minecraft:ender_pearl>*1).
addManaOutput(3600).
addManaPerTickOutput(20).
build();

// Mana Diamond to Mana Crystal
RecipeBuilder.newBuilder("m_manadiamond_crystal","modular_mana_dissociator",300).
addManaInput(3000).
addManaPerTickInput(10).
addItemInput(<botania:manaresource:2>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.4).
addItemOutput(<minecraft:diamond>*1).
addManaOutput(6000).
addManaPerTickOutput(20).
build();

// Mana Diamond Block to Mana Crystal
RecipeBuilder.newBuilder("m_manadiamondblock_crystal","modular_mana_dissociator",2700).
addManaInput(27000).
addManaPerTickInput(10).
addItemInput(<botania:storage:3>*1).
addItemOutput(<additions:hsadd-manacrystal>*3).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.6).
addItemOutput(<minecraft:diamond_block>*1).setChance(0.9).
addItemOutput(<minecraft:diamond>*9).setChance(0.1).
addManaOutput(54000).
addManaPerTickOutput(20).
build();

// Mana Lapis to Mana Crystal
RecipeBuilder.newBuilder("m_manalapis_crystal","modular_mana_dissociator",150).
addManaInput(1500).
addManaPerTickInput(10).
addItemInput(<botanicadds:mana_lapis>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.2).
addItemOutput(<minecraft:dye:4>*1).
addManaOutput(3000).
addManaPerTickOutput(20).
build();

// Mana Lapis Block to Mana Crystal
RecipeBuilder.newBuilder("m_manalapisblock_crystal","modular_mana_dissociator",1350).
addManaInput(13500).
addManaPerTickInput(10).
addItemInput(<botanicadds:mana_lapis_block>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).
addItemOutput(<additions:hsadd-manacrystal>*1).setChance(0.8).
addItemOutput(<minecraft:lapis_block>*1).setChance(0.9).
addItemOutput(<minecraft:dye:4>*9).setChance(0.1).
addManaOutput(27000).
addManaPerTickOutput(20).
build();
